import request from '@/utils/request';

export async function getStockHistoryOrder(param) {
  return request('/fss/HistoryOrder/StockHistoryOrder', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(param),
  });
}
export async function getOptionHistoryOrder(param) {
  return request('/fss/HistoryOrder/OptionHistoryOrder', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(param),
  });
}

export async function getStockTradeLogListByStock(param) {
  return request( `/fss/BankTradeSummaryInfo/StockTradeLogListByStock`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json;charset=utf-8',
      },
      body: JSON.stringify(param),
    }
  );
}

export async function getOptionTradeLogListByStock(param) {
  return request( `/fss/BankTradeSummaryInfo/OptionTradeLogListByStock`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json;charset=utf-8',
      },
      body: JSON.stringify(param),
    }
  );
}
